package sample;

import javafx.event.ActionEvent;
import javafx.scene.control.Alert;

public class Controller {
    public void sayhello(ActionEvent actionEvent) {
        Alert alert = new Alert(Alert.AlertType.INFORMATION);
        alert.setTitle("hello");
        alert.setHeaderText(null);
        alert.setContentText("hello javafx");
        alert.showAndWait();
    }
}
